package com.wangyang.stock.po;

import java.util.HashSet;
import java.util.Set;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */

public class Role implements java.io.Serializable {

	// Fields

	private Integer roleId;
	private String roleName;
	private Set permissions = new HashSet(0);
	private Set operators = new HashSet(0);

	// Constructors

	/** default constructor */
	public Role() {
	}

	public Role(Integer roleId) {
		this.roleId = roleId;
	}

	/** full constructor */
	public Role(String roleName, Set permissions, Set operators) {
		this.roleName = roleName;
		this.permissions = permissions;
		this.operators = operators;
	}

	// Property accessors

	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Set getPermissions() {
		return this.permissions;
	}

	public void setPermissions(Set permissions) {
		this.permissions = permissions;
	}

	public Set getOperators() {
		return this.operators;
	}

	public void setOperators(Set operators) {
		this.operators = operators;
	}

}